package com.jzo2o.market.controller.consumer;

import com.jzo2o.market.model.dto.response.CouponInfoResDTO;
import com.jzo2o.market.service.ICouponService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description CouponController
 * @Author kkk
 * @Date 2024-12-15
 */
@RestController("consumerCouponController")
@RequestMapping("/consumer/coupon")
@Api(tags = "用户端 - 优惠券相关接口")
public class CouponController {

    @Autowired
    private ICouponService couponService;

    @GetMapping("/my")
    @ApiOperation("我的优惠券列表")
    public List<CouponInfoResDTO> myCouponList(Integer status, Long lastId){
        return couponService.myCouponList(status, lastId);
    }
}
